fix font problem in workrave
authorcinamod <cinamod>
Tue, 9 Sep 2003 15:07:33 +0000 (15:07 +0000)
committercinamod <cinamod>
Tue, 9 Sep 2003 15:07:33 +0000 (15:07 +0000)
modules/engines/ms-windows/wimp_style.c

index d634150863fb250963e686326538e289371cbbc9..eeec05478f81d74ee5e6bdb90621e551e525fdf6 100755 (executable)
@@ -161,34 +161,38 @@ sys_font_to_pango_font (SystemFontType type, char * buf)
       switch (lf.lfWeight) {
       case FW_THIN:
       case FW_EXTRALIGHT:
-       weight = "ultralight";
+       weight = "Ultra-Light";
        break;
 
       case FW_LIGHT:
-       weight = "light";
+       weight = "Light";
        break;
 
-      case FW_SEMIBOLD:
       case FW_BOLD:
-       weight = "bold";
+       weight = "Bold";
+       break;
+
+      case FW_SEMIBOLD:
+       weight = "Semi-Bold";
        break;
 
       case FW_ULTRABOLD:
-       weight = "ultrabold";
+       weight = "Ultra-Bold";
        break;
 
       case FW_HEAVY:
-       weight = "heavy";
+       weight = "Heavy";
+       break;
 
       default:
-       weight = "normal";
+       weight = "";
        break;
       }
 
       if (lf.lfItalic)
-       style="italic";
+       style="Italic";
       else
-       style="normal";
+       style="";
 
       pt_size = -MulDiv(lf.lfHeight, 72,
                         GetDeviceCaps(GetDC(GetDesktopWindow()),